<template>
  <vue-modal
    title="订阅"
    ok-text="提交"
    cancel-text="取消"
    :show.sync="showModal"
    effect="fade"
    :small="true"
    :width="500"
    :callback="submit">
    <div slot="modal-body" class="modal-body">
      <form class="form-horizontal" role="form">
        <div class="form-group form-group-sm">
          <label class="col-sm-3 control-label">*手机号</label>
          <div class="col-sm-9 text-left">
            <input type="text" class="form-control" v-model="form.phone">
          </div>
        </div>
        <div class="form-group form-group-sm">
          <label class="col-sm-3 control-label">*订阅课程</label>
          <div class="col-sm-9 text-left">
            <select class="form-control" v-model="form.courseId">
              <option value="">请选择</option>
              <option v-for="it in courseList" value="{{it.key}}">{{it.value}}</option>
            </select>
          </div>
        </div>
        <div class="form-group form-group-sm" v-if="form.courseId">
          <label class="col-sm-3 control-label">*订阅时长</label>
          <div class="col-sm-9 text-left">
            <select class="form-control" v-model="form.dateNum">
              <option value="">请选择</option>
              <option v-for="it in courseDuration" value="{{it.key}}">{{it.value}}</option>
            </select>
          </div>
        </div>
      </form>
    </div>
  </vue-modal>
</template>
<style src="./subscribe-config.css" scoped></style>
<script src="./subscribe-config.js"></script>